import { Routes, Route } from "react-router";
import Layout from "@/Layout";
import Login from "./views/Login/index.tsx";
import Home from "./views/Home/index.tsx";
import NotFound from "./views/404/index.tsx";
import User from "./views/System/User/index.tsx";

function App() {
  return (
    <>
      <Routes>
        <Route element={<Layout />}>
          <Route index element={<Home />} />
          <Route path="system">
            <Route path="user" element={<User />}></Route>
          </Route>
          <Route path="*" element={<NotFound />} />
        </Route>
        <Route path="login" element={<Login />} />
      </Routes>
    </>
  );
}

export default App;
